x86: properly define size_t
authorJan Beulich <jbeulich@suse.com>
Thu, 12 Jan 2012 15:45:39 +0000 (16:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Jan 2012 15:45:39 +0000 (16:45 +0100)
commitc7bd6f1e688a841b3c7e97893729452f04f770e4
treea670fb212fd5c4d846cd9ba5f6e9a9f043900431
parentac2dc37213347371e2bd89b7d0c7b185d03845b1
x86: properly define size_t

Having it defined unilaterally as 'unsigned long' got me surprised
recently when I tried to use the 'z' printk type modifier, as that is
expected by the compiler to be used only on the type it knows size_t
is supposed to have.

Generally the compiler provides a construct to do this, so use it when
available.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Acked-by: Christoph Egger <Christoph.Egger@amd.com>
xen/arch/x86/microcode_amd.c
xen/include/asm-x86/types.h